// 数据配置
const datas = {
	// preview_color: {
	// 	title: "背景",
	// 	type: "bg",
	// 	value: {
	// 		isColor: '1',
	// 		color: "#ffffff",
	// 		image: ""
	// 	}
	// },
	preview_color: {
		title: '背景颜色',
		type: 'color',
		value: "#F1F1F1",
	},
	sort_style: {
		title: "商品排列样式",
		type: "iconbox",
		value: {
			choose_icon: '2',
		},
		choose: 'single',
		isIcon: true,
		options: [
			{icon: 'icon-ht_goods_onepic', value: '1'},
			{icon: 'icon-ht_goods_twopic', value: '2'},
			{icon: 'icon-ht_goods_vertical', value: '3'},
			{icon: 'icon-ht_goods_three', value: '4'},
			{icon: 'icon-ht_goods_threescroll', value: '5'},
			{icon: 'icon-ht_goods_threepic', value: '6'}
		]
	},
	padding_top: { title: '上边距', type: 'number', value: 0, col: 4, showTerminal: 'h5', },
	padding_bottom: { title: '下边距', type: 'number', value: 0, col: 4, showTerminal: 'h5', },
	padding_left: { title: '左边距', type: 'number', value: 10, col: 4, showTerminal: 'h5', },
	padding_right: { title: '右边距', type: 'number', value: 10, col: 4, showTerminal: 'h5', },
	item_radius: {
		title: '商品圆角',
		type: 'bar',
		value: 5,
		min: 0,
		max: 50,
		showTerminal: 'h5', //控制显示终端
	},
	show_shadow: {
		title: '投影',
		type: 'switch',
		tips: '只在大图和横排排列样式下实现',
		value: false,
		showTerminal: 'h5', //控制显示终端
	},
	show_border: {
		title: '显示边框',
		type: 'switch',
		tips: '只在大图和横排排列样式下实现',
		value: false,
		showTerminal: 'h5', //控制显示终端
	},
	border_color: {
		title: '边框颜色',
		type: 'color',
		value: '#BFB7B7',
		showTerminal: 'h5', //控制显示终端
	},
	good_tag: {
		title: '商品属性',
		type: "iconbox",
		tips: '商品属性统一在左上角显示',
		value: {
			choose_icon: '0',
			image: '',
		},
		choose: 'single',
		isIcon: false,
		options: [
			{label: '无', value: '0'},
			{label: '推荐', value: '1'},
			{label: '热销', value: '2'},
			{label: '新上', value: '3'},
			{label: '包邮', value: '4'},
			{label: '限时', value: '5'},
			{label: '自定义', value: '7'}
		],
		showTerminal: 'h5', //控制显示终端 h5代表H5和小程序   cps代表原生聚合APP
	},
	button_type: {
		title: '购买按钮样式',
		tips: '选择一排三个商品的排列方式时无法选择样式一或者样式二',
		type: 'radio',
		value: '4',
		options: [
			{label: '无', value: '0'},
			{label: '样式一', value: '1'},
			{label: '样式二', value: '2'},
			{label: '样式三', value: '3'},
			{label: '样式四', value: '4'},
			{label: '样式五', value: '5'},
			{label: '样式六', value: '6'},
		],
		showTerminal: 'h5', //控制显示终端
	},
	button_title: {
		title: '购买按钮文字',
		tips: '按钮文字只在选择有文字的样式时生效',
		type: 'text',
		value: '立即购买',
		showTerminal: 'h5', //控制显示终端
	},
	button_bg_color: {
		title: '购买按钮背景颜色',
		type: 'color',
		value: '#ff2c29',
		showTerminal: 'h5', //控制显示终端
	},
	button_color: {
		title: '购买按钮颜色',
		type: 'color',
		value: '#ffffff',
		showTerminal: 'h5', //控制显示终端
	},
	content_list: {
		title: "内容显示",
		tips: '爱心值和赠送积分只能选一个显示，同时选择时则优先显示爱心值；现价和券后价只显示其中一个价格，同时选择时则优先显示券后价，商品没有券后价则显示现价',
		type: "checkbox",
		value: ['1','2','3','7'],
		options: [
			{label: "标题", value: "1"},
			{label: "原价", value: "2"},
			{label: "现价", value: "3"},
			{label: "会员价", value: "4", showTerminal: 'h5'},
			{label: "爱心值", value: "5", showTerminal: 'h5'},
			{label: "赠送积分", value: "6", showTerminal: 'h5'},
			{label: "销量", value: "7"},
		]
	},
	// show_price_text: {
	// 	title: '显示价格文字',
	// 	type: 'switch',
	// 	tips: '只控制券后价，原价，现价的文字',
	// 	value: false
	// },
	// disable_good: {
	// 	title: '失效产品',
	// 	type: 'radio',
	// 	value: '0',
	// 	options: [
	// 		{label: '不显示', value: '0'},
	// 		{label: '样式一', value: '1'},
	// 		{label: '样式二', value: '2'},
	// 	]
	// },
	good_number: {
		title: "商品显示数量",
		tips: "聚合APP商品组件最多显示200个商品",
		type: 'number',
		value: 200,
		min: 2,
		max: 200,
		showTerminal: 'cpsApp', //控制显示终端 CPS APP
	},
	get_number: {
		title: "商品显示数量",
		tips: "0表示无限制",
		type: 'number',
		value: 0,
		min: 0,
		max: 1000,
		showTerminal: 'h5', //控制显示终端
	},
	show_location: {
		title: '显示距离',
		type: 'switch',
		value: true
	},
	list: {
		title: '商品数据',
		tips: '除了单个选择商品可显示商品数据以外 其余都将使用默认商品数据占位，需要查看效果可保存后在移动端预览。',
		value: [],
		chooseList: {
			store_good: [],
			project: [],
		},
		chooseType: [
			{label: '单个选择', value: 'store_good'},
			{label: '项目', value: 'project'},
		],
		type: 'goodList',
		choose: 'good'
	},
	goods_type: {
		title: '选择类型',
		type: 'radio',
		value: 'store_good',
		options: []
	}
};

// 样式配置
const styles = {};

import template1 from './template1';

export const config = {
	datas,
	styles,
	layout: [
		template1
	]
}
